package com.tiantian.user.service.impl;

import com.tiantian.user.domain.entity.SysInvite;
import com.tiantian.user.mapper.SysInviteMapper;
import com.tiantian.user.service.SysInviteService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tiantian
 */
@RequiredArgsConstructor
@Service
public class SysInviteServiceImpl implements SysInviteService {

    private final SysInviteMapper sysInviteMapper;

    @Override
    public SysInvite selectById(Integer id) {
        return sysInviteMapper.selectById(id);
    }

    @Override
    public SysInvite selectByInviteCode(String inviteCode) {
        return sysInviteMapper.selectByInviteCode(inviteCode);
    }

    @Override
    public List<SysInvite> selectByPage(Integer pageNum, Integer pageSize, SysInvite sysInvite) {
        return sysInviteMapper.selectList(sysInvite);
    }

    @Override
    public List<SysInvite> selectList(SysInvite sysInvite) {
        return sysInviteMapper.selectList(sysInvite);
    }

    @Override
    public Boolean insert(SysInvite sysInvite) {
        return sysInviteMapper.insert(sysInvite);
    }

    @Override
    public Boolean updateById(SysInvite sysInvite) {
        return sysInviteMapper.updateById(sysInvite);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return sysInviteMapper.deleteById(id);
    }

}


